<?

/**
* Copyright (c) 2002-2007 BioWare Corp.
* http://www.bigdaddymonitor.org
*
* This file is part of the BigDaddy Monitoring
* program. It is free software distributed under
* the terms of the BSD License. It is ditributed
* in the hopes that it will be useful, but
* WITHOUT ANY WARRANTY; without event the implied
* warranty of MERCHANTABILITY or FITNESS FOR A
* PARTICULAR PURPOSE.
*
* The BSD License is available from:
* http://www.opensource.org/licenses/bsd-license.php
**/

class App
{
    var $sTitle;        // App title
    var $aOptions;      // Content specific options (ie: toolbar)
    var $aOptionHeaders = Array();

    /*
        $nType:         0 = regular URL
                        1 = JavaScript
                        2 = Text only
    */


    function AddOptionHeader($sID, $sCaption, $bNoHide = NULL)
    {
        $this->aOptionHeaders[$sID]["sCaption"] = $sCaption;
        
        if ($bNoHide)
        {
            $this->aOptionHeaders[$sID]["bNoHide"] = true;
        }
        
    }
    
    
    function AddOption($sID, $sCaption, $nType, $sAction, $sParent, $sImage = NULL)
    {
        $this->aOptions[$sID]["sCaption"] = $sCaption;
        $this->aOptions[$sID]["nType"] = $nType;
        $this->aOptions[$sID]["sAction"] = $sAction;
        $this->aOptions[$sID]["sParent"] = $sParent;
        
        if ($sImage)
        {
            $this->aOptions[$sID]["sImage"] = $sImage;
        }

    }
    
}
?>
